/// productId : "1429680903759626241"
/// productType : "column"
/// title : "如何搭建和运营自己的知识店铺"
/// summary : "手把手教您快速的拥有自己的知识店铺"
/// descrb : "<p><img src=\"https://default-1252057090.cos.ap-shanghai.myqcloud.com/439e522d-ec47-4cd3-8cc2-3016b490ba92.png\"></p><p><br></p><h3>本专栏会对以下问题进行说明讲解。</h3><p><br></p><h3>・如何注册店铺?</h3><h3>・如何创建店铺?</h3><h3>・如何创建商品？</h3><h3>・如何创建直播？</h3><h3>・如何查看用户？</h3><h3>・如何获取收益？</h3><h3><br></h3><h3>视频说明为主，图文展示为辅。</h3><h3>让您快速掌握小象云课平台的各种操作。</h3><p><br></p><p><img src=\"https://default-1252057090.cos.ap-shanghai.myqcloud.com/439e522d-ec47-4cd3-8cc2-3016b490ba92.png\"></p>"
/// imgUrl : "https://default-1252057090.cos.ap-shanghai.myqcloud.com/f820bb66-83a1-4b71-8661-8b9aedd40e2c.png?imageMogr2/auto-orient/thumbnail/3364x1892/quality/50/cut/3364x1892x0x0"
/// payType : 0
/// resourceCnt : 7
/// userCnt : 10
/// publishTime : "2021-08-30 11:55:59"
/// selfAdded : true
/// status : 2

class ProductDetail {
  ProductDetail({
      String? productId, 
      String? productType, 
      String? title, 
      String? summary, 
      String? descrb, 
      String? imgUrl, 
      int? payType, 
      int? resourceCnt, 
      int? userCnt, 
      String? publishTime, 
      bool? selfAdded, 
      int? status,}){
    _productId = productId;
    _productType = productType;
    _title = title;
    _summary = summary;
    _descrb = descrb;
    _imgUrl = imgUrl;
    _payType = payType;
    _resourceCnt = resourceCnt;
    _userCnt = userCnt;
    _publishTime = publishTime;
    _selfAdded = selfAdded;
    _status = status;
}

  ProductDetail.fromJson(dynamic json) {
    _productId = json['productId'];
    _productType = json['productType'];
    _title = json['title'];
    _summary = json['summary'];
    _descrb = json['descrb'];
    _imgUrl = json['imgUrl'];
    _payType = json['payType'];
    _resourceCnt = json['resourceCnt'];
    _userCnt = json['userCnt'];
    _publishTime = json['publishTime'];
    _selfAdded = json['selfAdded'];
    _status = json['status'];
  }
  String? _productId;
  String? _productType;
  String? _title;
  String? _summary;
  String? _descrb;
  String? _imgUrl;
  int? _payType;
  int? _resourceCnt;
  int? _userCnt;
  String? _publishTime;
  bool? _selfAdded;
  int? _status;

  String? get productId => _productId;
  String? get productType => _productType;
  String? get title => _title;
  String? get summary => _summary;
  String? get descrb => _descrb;
  String? get imgUrl => _imgUrl;
  int? get payType => _payType;
  int? get resourceCnt => _resourceCnt;
  int? get userCnt => _userCnt;
  String? get publishTime => _publishTime;
  bool? get selfAdded => _selfAdded;
  int? get status => _status;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['productId'] = _productId;
    map['productType'] = _productType;
    map['title'] = _title;
    map['summary'] = _summary;
    map['descrb'] = _descrb;
    map['imgUrl'] = _imgUrl;
    map['payType'] = _payType;
    map['resourceCnt'] = _resourceCnt;
    map['userCnt'] = _userCnt;
    map['publishTime'] = _publishTime;
    map['selfAdded'] = _selfAdded;
    map['status'] = _status;
    return map;
  }

}